package com.clusterswisdom.horn.api.ioc.struct;

import org.dom4j.Element;

import com.clusterswisdom.horn.api.ioc.api.ParamType;

public class SourceField {

	private String name;
	
	private ParamType type;
	
	private String note;
	
	public SourceField(Element element) {
		this.name = element.attributeValue("name");
		this.type = ParamType.findByName(element.attributeValue("type"));
		this.note = element.attributeValue("note");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ParamType getType() {
		return type;
	}

	public void setType(ParamType type) {
		this.type = type;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
}
